void SaveGame(vector<vector<int>>BoardStatus,vector<vector<int>>BlackStatus,vector<vector<int>>WhiteStatus)
{
	Device->getGUIEnvironment()->addMessageBox(L"warning",L"Save File!");
	IWriteFile* UnfinishedGameFile = Device->getFileSystem()->createAndWriteFile("Unfinished Game.txt");
	for(vector<vector<int>>::iterator it1 = BoardStatus.begin();it1 != BoardStatus.end();it1++)
	{
		//Device->getGUIEnvironment()->addMessageBox(L"warning",L"Save File!");
		std::string line;
		vector<int>LineStatus = *it1;
		int i = 0;
		for(vector<int>::iterator it2 = LineStatus.begin();it2 != LineStatus.end();it2++)
		{
			line.push_back(*it2+48);
			line.push_back(32);
			i++;
		}
		UnfinishedGameFile->write(line.c_str(),line.length());
	}
	UnfinishedGameFile->drop();
	IWriteFile* UnfinishedGameFile2 = Device->getFileSystem()->createAndWriteFile("Black Board.txt");
	for(vector<vector<int>>::iterator it1 = BlackStatus.begin();it1 != BlackStatus.end();it1++)
	{
			//Device->getGUIEnvironment()->addMessageBox(L"warning",L"Save File!");
		std::string line;
		vector<int>LineStatus = *it1;
		for(vector<int>::iterator it2 = LineStatus.begin();it2 != LineStatus.end();it2++)
		{
			line.push_back(*it2+48);
			line.push_back(32);
		}
		UnfinishedGameFile2->write(line.c_str(),line.length());
	}
	UnfinishedGameFile2->drop();
	IWriteFile* UnfinishedGameFile3 = Device->getFileSystem()->createAndWriteFile("White Board.txt");
	for(vector<vector<int>>::iterator it1 = WhiteStatus.begin();it1 != WhiteStatus.end();it1++)
	{
		//	Device->getGUIEnvironment()->addMessageBox(L"warning",L"Save File!");
		std::string line;
		vector<int>LineStatus = *it1;
		int i = 0;
		for(vector<int>::iterator it2 = LineStatus.begin();it2 != LineStatus.end();it2++)
		{
			line.push_back(*it2+48);
			line.push_back(32);
			i++;
		}
		UnfinishedGameFile3->write(line.c_str(),line.length());
	}
	UnfinishedGameFile3->drop();
}